package com.jianqiao.delivery.pay.domain.initr2p;

import lombok.Data;

/**
 * author: cyx
 * create: 2024/11/26 14:44
 **/
@Data
public class ReferencesEntity {

    private String referenceType;

    private String referenceDate;

    private String referenceValue;

    public ReferencesEntity(String referenceType, String referenceDate, String referenceValue) {
        this.referenceType = referenceType;
        this.referenceDate = referenceDate;
        this.referenceValue = referenceValue;
    }

    public static ReferencesEntityBuild builder() {
        return new ReferencesEntityBuild();
    }

    public static class ReferencesEntityBuild {
        private String referenceType;

        private String referenceDate;

        private String referenceValue;

        ReferencesEntityBuild(){

        }

        public ReferencesEntityBuild referenceType(final String referenceType) {
            this.referenceType = referenceType;
            return this;
        }

        public ReferencesEntityBuild referenceDate(final String referenceDate) {
            this.referenceDate = referenceDate;
            return this;
        }

        public ReferencesEntityBuild referenceValue(final String referenceValue) {
            this.referenceValue = referenceValue;
            return this;
        }

        public ReferencesEntity build() {
            return new ReferencesEntity(this.referenceType ,this.referenceDate ,this.referenceValue);
        }
    }
}
